package com.example.demo.feign;

import com.example.demo.web.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("account-service")
public interface AccountService {

    @PostMapping(path = "/account")
    AjaxResult account(@RequestParam("userId") String userId,
                       @RequestParam("money") int money);

}
